import axios from "../utils/index";

//   获取商品列表数据
export const getgoods = (params) => {
  return axios({
    method: "get",
    url: `/api/getgoods`,
    params,
  });
};
//   商品图文介绍
export const getdesc = (id) => {
  return axios({
    method: "get",
    url: `/api/goods/getdesc/${id}`,
  });
};
//   获取购物车页面数据
export const getshopcarlist = (id) => {
  return axios({
    method: "get",
    url: `/api/goods/getshopcarlist/${id}`,
  });
};
// 获取商品参数区和价格，标题等数据
export const getinfo = (id) => {
  return axios({
    method: "get",
    url: `/api/goods/getinfo/${id}`,
  });
};
